/*
** axe_x.c for  in /home/jousse_f//afs/rendu/math/103interpol
** 
** Made by florian jousseau
** Login   <jousse_f@epitech.net>
** 
** Started on  Tue Mar  1 15:56:37 2011 florian jousseau
** Last update Tue Mar  1 18:16:29 2011 florian jousseau
*/

#include "include/103.h"

int	tiret_x(t_pos *param)
{
  int	x;
  int	y;

  y = 555;
  x = 200;
  while (x < 1200)
  {
    while (y > 545)
    {
      mlx_pixel_put(param->mlx_ptr, param->win_ptr, x, y, 0xFFFFFF);
      y--;
    }
    y = 555;
    x = x + 100;
  }
  tiret_y(param);
  return (0);
}

int	axe_x(t_pos *param)
{
  int	x;
  int	y;

  y = 550;
  x = 0;
  while (x < 1200)
  {
    mlx_pixel_put(param->mlx_ptr, param->win_ptr, x, y, 0xFFFFFF);
    x++;
  }
  tiret_x(param);
  return (0);
}

